<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>airline-res: AirlineRes::BookingRecord Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">airline-res
   
   </div>
   <div id="projectbrief">A prototype airline flight booking system</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><b>AirlineRes</b>      </li>
      <li class="navelem"><a class="el" href="class_airline_res_1_1_booking_record.html">BookingRecord</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a>  </div>
  <div class="headertitle">
<div class="title">AirlineRes::BookingRecord Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="AirlineRes::BookingRecord" --><!-- doxytag: inherits="AirlineRes::Record" -->
<p>Class to store and operate upon the data that comprises a booking.  
 <a href="class_airline_res_1_1_booking_record.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_booking_record_8h_source.html">BookingRecord.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for AirlineRes::BookingRecord:</div>
<div class="dyncontent">
<div class="center"><img src="class_airline_res_1_1_booking_record__inherit__graph.png" border="0" usemap="#_airline_res_1_1_booking_record_inherit__map" alt="Inheritance graph"/></div>
<map name="_airline_res_1_1_booking_record_inherit__map" id="_airline_res_1_1_booking_record_inherit__map">
<area shape="rect" id="node2" href="class_airline_res_1_1_record.html" title="{AirlineRes::Record\n|# m_id\l|+ Record()\l+ ~Record()\l+ LoadRecord()\l+ WriteRecord()\l+ GetID()\l}" alt="" coords="28,5,159,141"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<div class="dynheader">
Collaboration diagram for AirlineRes::BookingRecord:</div>
<div class="dyncontent">
<div class="center"><img src="class_airline_res_1_1_booking_record__coll__graph.png" border="0" usemap="#_airline_res_1_1_booking_record_coll__map" alt="Collaboration graph"/></div>
<map name="_airline_res_1_1_booking_record_coll__map" id="_airline_res_1_1_booking_record_coll__map">
<area shape="rect" id="node2" href="class_airline_res_1_1_record.html" title="{AirlineRes::Record\n|# m_id\l|+ Record()\l+ ~Record()\l+ LoadRecord()\l+ WriteRecord()\l+ GetID()\l}" alt="" coords="28,5,159,141"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="class_airline_res_1_1_booking_record-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_airline_res_1_1_booking_record.html#a95a0709a37cc1af334071ca4f097fee0">BookingStatus</a> { <b>BookingStatus_Confirmed</b>, 
<b>BookingStatus_Reserved</b>, 
<b>BookingStatus_Cancelled</b>, 
<b>BookingStatus_NumBookingStatuses</b>
 }</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Represents possible states for a booking. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_airline_res_1_1_booking_record.html#ab2bcad9f0a7e100358943207d1773723">BookingClass</a> { <b>BookingClass_First</b>, 
<b>BookingClass_Economy</b>, 
<b>BookingClass_NumBookingClasses</b>
 }</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Represents possible classes for a booking. <br/></td></tr>
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a81063bc5a5f3f4806368d2df11d8e4f4"></a><!-- doxytag: member="AirlineRes::BookingRecord::BookingRecord" ref="a81063bc5a5f3f4806368d2df11d8e4f4" args="(int m_flightID, int m_customerID, BookingStatus m_status, BookingClass m_class)" -->
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_airline_res_1_1_booking_record.html#a81063bc5a5f3f4806368d2df11d8e4f4">BookingRecord</a> (int m_flightID, int m_customerID, <a class="el" href="class_airline_res_1_1_booking_record.html#a95a0709a37cc1af334071ca4f097fee0">BookingStatus</a> m_status, <a class="el" href="class_airline_res_1_1_booking_record.html#ab2bcad9f0a7e100358943207d1773723">BookingClass</a> m_class)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Construct record initialised with field values. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="class_airline_res_1_1_record.html#a515eae52b011c6ef424c873f26f0fb9b">RecordIOResult</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_airline_res_1_1_booking_record.html#a9860fb66fcbc10205733908cfb553982">LoadRecord</a> (std::istream &amp;_stream)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="class_airline_res_1_1_record.html#a515eae52b011c6ef424c873f26f0fb9b">RecordIOResult</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_airline_res_1_1_booking_record.html#a4ab859e8e3ae7cc14135c186be622692">WriteRecord</a> (std::ostream &amp;_stream) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0acc2a1589a4d678fb42d51d3774f946"></a><!-- doxytag: member="AirlineRes::BookingRecord::GetFlightID" ref="a0acc2a1589a4d678fb42d51d3774f946" args="() const " -->
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_airline_res_1_1_booking_record.html#a0acc2a1589a4d678fb42d51d3774f946">GetFlightID</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the ID of the flight record that this booking references. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a257bba73e657442cc8edef10350d9132"></a><!-- doxytag: member="AirlineRes::BookingRecord::GetCustomerID" ref="a257bba73e657442cc8edef10350d9132" args="() const " -->
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_airline_res_1_1_booking_record.html#a257bba73e657442cc8edef10350d9132">GetCustomerID</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the ID of the customer record that this booking references. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7cb157a4e84494f154699e85d2e47cbf"></a><!-- doxytag: member="AirlineRes::BookingRecord::GetBookingStatus" ref="a7cb157a4e84494f154699e85d2e47cbf" args="() const " -->
<a class="el" href="class_airline_res_1_1_booking_record.html#a95a0709a37cc1af334071ca4f097fee0">BookingStatus</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_airline_res_1_1_booking_record.html#a7cb157a4e84494f154699e85d2e47cbf">GetBookingStatus</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the status of the customer record that this booking references. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a14252e6a763d3402c613d3de7424922c"></a><!-- doxytag: member="AirlineRes::BookingRecord::GetBookingClass" ref="a14252e6a763d3402c613d3de7424922c" args="() const " -->
<a class="el" href="class_airline_res_1_1_booking_record.html#ab2bcad9f0a7e100358943207d1773723">BookingClass</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_airline_res_1_1_booking_record.html#a14252e6a763d3402c613d3de7424922c">GetBookingClass</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the class of the customer record that this booking references. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="afd9dcd3e799b36a365f31393446adb78"></a><!-- doxytag: member="AirlineRes::BookingRecord::SetFlightID" ref="afd9dcd3e799b36a365f31393446adb78" args="(int _flightID)" -->
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_airline_res_1_1_booking_record.html#afd9dcd3e799b36a365f31393446adb78">SetFlightID</a> (int _flightID)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the ID of the flight record that this booking references. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9ec24d1e167266b17ecafebd51aa9d23"></a><!-- doxytag: member="AirlineRes::BookingRecord::SetCustomerID" ref="a9ec24d1e167266b17ecafebd51aa9d23" args="(int _customerID)" -->
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_airline_res_1_1_booking_record.html#a9ec24d1e167266b17ecafebd51aa9d23">SetCustomerID</a> (int _customerID)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the ID of the customer record that this booking references. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aace6316929df9660e3e45a52adb21dd5"></a><!-- doxytag: member="AirlineRes::BookingRecord::SetBookingStatus" ref="aace6316929df9660e3e45a52adb21dd5" args="(BookingStatus _BookingStatus)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_airline_res_1_1_booking_record.html#aace6316929df9660e3e45a52adb21dd5">SetBookingStatus</a> (<a class="el" href="class_airline_res_1_1_booking_record.html#a95a0709a37cc1af334071ca4f097fee0">BookingStatus</a> _BookingStatus)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the BookingStatus of the Booking record. <br/></td></tr>
<tr><td colspan="2"><h2><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a16fae0febffe0fae4b9fd8fe270582f5"></a><!-- doxytag: member="AirlineRes::BookingRecord::m_flightID" ref="a16fae0febffe0fae4b9fd8fe270582f5" args="" -->
int&#160;</td><td class="memItemRight" valign="bottom"><b>m_flightID</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad87d0e64e75f40114615d23768d102f3"></a><!-- doxytag: member="AirlineRes::BookingRecord::m_customerID" ref="ad87d0e64e75f40114615d23768d102f3" args="" -->
int&#160;</td><td class="memItemRight" valign="bottom"><b>m_customerID</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8a79c121ab6aca18a95598c3b7a3e990"></a><!-- doxytag: member="AirlineRes::BookingRecord::m_status" ref="a8a79c121ab6aca18a95598c3b7a3e990" args="" -->
<a class="el" href="class_airline_res_1_1_booking_record.html#a95a0709a37cc1af334071ca4f097fee0">BookingStatus</a>&#160;</td><td class="memItemRight" valign="bottom"><b>m_status</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3da3f1cca9ef1058f7e829f43dc25d1c"></a><!-- doxytag: member="AirlineRes::BookingRecord::m_class" ref="a3da3f1cca9ef1058f7e829f43dc25d1c" args="" -->
<a class="el" href="class_airline_res_1_1_booking_record.html#ab2bcad9f0a7e100358943207d1773723">BookingClass</a>&#160;</td><td class="memItemRight" valign="bottom"><b>m_class</b></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Class to store and operate upon the data that comprises a booking. </p>

<p>Definition at line <a class="el" href="_booking_record_8h_source.html#l00011">11</a> of file <a class="el" href="_booking_record_8h_source.html">BookingRecord.h</a>.</p>
</div><hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a9860fb66fcbc10205733908cfb553982"></a><!-- doxytag: member="AirlineRes::BookingRecord::LoadRecord" ref="a9860fb66fcbc10205733908cfb553982" args="(std::istream &amp;_stream)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_airline_res_1_1_record.html#a515eae52b011c6ef424c873f26f0fb9b">Record::RecordIOResult</a> AirlineRes::BookingRecord::LoadRecord </td>
          <td>(</td>
          <td class="paramtype">std::istream &amp;&#160;</td>
          <td class="paramname"><em>_stream</em></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Attempt to load <a class="el" href="class_airline_res_1_1_record.html">Record</a> data from the specified istream.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">_stream</td><td>The istream from which to extract record fields.</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>An error code represting whether or not the operation was a success. </dd></dl>

<p>Implements <a class="el" href="class_airline_res_1_1_record.html#afc47a99151fc262aa4d4b1e27d2c1c93">AirlineRes::Record</a>.</p>

<p>Definition at line <a class="el" href="_booking_record_8cpp_source.html#l00022">22</a> of file <a class="el" href="_booking_record_8cpp_source.html">BookingRecord.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a4ab859e8e3ae7cc14135c186be622692"></a><!-- doxytag: member="AirlineRes::BookingRecord::WriteRecord" ref="a4ab859e8e3ae7cc14135c186be622692" args="(std::ostream &amp;_stream) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_airline_res_1_1_record.html#a515eae52b011c6ef424c873f26f0fb9b">Record::RecordIOResult</a> AirlineRes::BookingRecord::WriteRecord </td>
          <td>(</td>
          <td class="paramtype">std::ostream &amp;&#160;</td>
          <td class="paramname"><em>_stream</em></td><td>)</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Attempt to write this <a class="el" href="class_airline_res_1_1_record.html">Record</a> to the specified ostream.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">_stream</td><td>The ostream to write record fields to.</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>An error code represting whether or not the operation was a success. </dd></dl>

<p>Implements <a class="el" href="class_airline_res_1_1_record.html#affd38c74f5c4ce2c69bd7d527b90b5e2">AirlineRes::Record</a>.</p>

<p>Definition at line <a class="el" href="_booking_record_8cpp_source.html#l00037">37</a> of file <a class="el" href="_booking_record_8cpp_source.html">BookingRecord.cpp</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>C:/Users/Joe/Development/Projects/University/FormalMethods/airline-res/include/<a class="el" href="_booking_record_8h_source.html">BookingRecord.h</a></li>
<li>C:/Users/Joe/Development/Projects/University/FormalMethods/airline-res/src/<a class="el" href="_booking_record_8cpp_source.html">BookingRecord.cpp</a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Enumerations</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Wed Dec 14 2011 22:49:41 for airline-res by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5.1
</small></address>

</body>
</html>
